package com.itlong.cloud.POJO.PO;

import com.itlong.cloud.annotation.ItlField;
import com.itlong.cloud.annotation.ItlTables;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 *
 *  <desc>
 *      电梯楼层映射表
 * </desc>
 *
 * @createDate 2017/10/12
 */
@ItlTables("device_elevator_floor_config")
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper=true)
public class DeviceElevatorFloorConfigPO extends  BasePO implements Serializable {


    /**
     * 逻辑楼层名称（按键名称），-2楼，-1楼，2楼，3层
     */
    @ItlField("logical_floor")
    private String logicalFloor;

    /**
     * 端子号，控制器的端子号
     */
    @ItlField("terminal_floor")
    private String terminalFloor;

    /**
     * 第1副操纵盘端子号
     */
    @ItlField("terminal_num_slave1")
    private String terminalNumSlave1;

    /**
     * 第2副操纵盘端子号
     */
    @ItlField("terminal_num_slave2")
    private String terminalNumSlave2;

    /**
     * 设备唯一码
     */
    @ItlField(value = "device_unique" , logicKey = "key")
    private String deviceUnique;

    /**
     * 权限标识,1,2至112
     */
    @ItlField("natural_floor")
    private String naturalFloor;

    /**
     * 电梯logicFloor所对应的实际楼层
     */
    @ItlField("floor_num")
    private Integer floorNum;

    /**
     * 检测楼层
     */
    @ItlField("detect_floor")
    private String detectFloor;
    /**
     * 云对讲端子号
     */
    @ItlField("terminal_num_intercom")
    private String terminalNumIntercom;

    public DeviceElevatorFloorConfigPO(String logicalFloor, String deviceUnique, String naturalFloor) {
        this.logicalFloor = logicalFloor;
        this.deviceUnique = deviceUnique;
        this.naturalFloor = naturalFloor;
    }

    public DeviceElevatorFloorConfigPO(Integer floorNum,String deviceUnique, String naturalFloor) {
        this.deviceUnique = deviceUnique;
        this.naturalFloor = naturalFloor;
        this.floorNum = floorNum;
    }
}